<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="__STATIC__/admin/css/main.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/admin/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
    <script src="__STATIC__/admin/js/jquery-1.8.1.min.js"></script>
    <script src="__STATIC__/admin/js/bootstrap.min.js"></script>
</head>
<body>
<!-- 上 -->
<div class="navbar">
    <div class="navbar-inner">
        <div class="container-fluid">
            <ul class="nav pull-right">
                <li id="fat-menu" class="dropdown">
                    <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-user icon-white"></i> {$Think.session.userInfo.nickname}
                        <i class="icon-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a tabindex="-1" href="javascript:void(0);">修改密码</a></li>
                        <li class="divider"></li>
                        <li><a tabindex="-1" href="{:url('admin/login/logout')}">安全退出</a></li>
                    </ul>
                </li>
            </ul>
            <a class="brand" href="index.html"><span class="first">后台管理系统</span></a>
            <ul class="nav">
                <li class="active"><a href="javascript:void(0);">首页</a></li>
                <li><a href="javascript:void(0);">系统管理</a></li>
                <li><a href="javascript:void(0);">权限管理</a></li>
                <li><a href="javascript:void(0);">班级管理</a></li>
            </ul>
        </div>
    </div>
</div>
<!-- 左 -->
<div class="sidebar-nav">
    {foreach $Think.session.userNode as $vo}
        <a href="#{$vo.id}" class="nav-header collapsed" data-toggle="collapse"><i class="icon-exclamation-sign"></i>{$vo.node_name}</a>
        <ul id="{$vo.id}" class="nav nav-list collapse">
            {foreach $vo['child'] as $v}
                {if $v.is_menu == 1}
                    <li><a href="{:url($v.node_controller.'/'.$v.node_action)}?token={$Think.session.token}">{$v.node_name}</a></li>
<!--                    <li><a href="http://www.1906a.com/{$v.api_path}?token={$Think.session.token}">{$v.node_name}</a></li>-->
                {/if}
            {/foreach}
        </ul>
    {/foreach}
</div>
<!-- 右 -->
<div class="content">
    {__CONTENT__}
    <!-- footer -->
    <footer>
        <hr>
        <p>© 2017 <a href="javascript:void(0);" target="_blank">ADMIN</a></p>
    </footer>
</div>
</body>
</html>